package com.bw.ivideoproject.login

import com.bw.ivideoproject.entity.BaseResp
import com.bw.ivideoproject.entity.UserEntity
import com.bw.lib_mvvm.BaseModel

class LoginModel : BaseModel() {

    val api = getVideoService(LoginApi::class.java)

    suspend fun login(username:String,password:String):BaseResp<UserEntity>{
        return api.login(username,password)
    }

    suspend fun register(username:String,password:String):BaseResp<UserEntity>{
        return api.register(username,password)
    }

}